home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Python 1.1 / Mac / macdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-29  |  615 b   |  30 lines  |  [TEXT/KAHL]

  1. /* Useful #includes and #defines for programming a set of Unix
  2.    look-alike file system access functions on the Macintosh.
  3.    Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
  4. */
  5.  
  6. #include <Types.h>
  7. #include <Files.h>
  8. #include <OSUtils.h>
  9.  
  10. #ifdef THINK_C
  11. #include <pascal.h>
  12. #endif
  13.  
  14. #include <errno.h>
  15. #include <string.h>
  16.  
  17. /* Macro to find out whether we can do HFS-only calls: */
  18. #define FSFCBLen (* (short *) 0x3f6)
  19. #define hfsrunning() (FSFCBLen > 0)
  20.  
  21. /* Universal constants: */
  22. #define MAXPATH 256
  23. #define TRUE 1
  24. #define FALSE 0
  25. #ifndef NULL
  26. #define NULL 0
  27. #endif
  28. #define EOS '\0'
  29. #define SEP ':'
  30.